package com.jiangxfei.mymvp.app.home.mvp;

import com.jiangxfei.mymvp.app.home.bean.User;
import com.jiangxfei.mymvp.base.IModel;
import com.jiangxfei.mymvp.base.IView;

import java.util.List;

import io.reactivex.Observable;

/**
 * @author: JiangXFei
 * @date: 2018/1/9 0009
 * @content:
 */

public class HomeConstract {

    public interface Model extends IModel {
        Observable<List<User>> loadUser(int since, boolean cache);
    }

    public interface View extends IView {
        void loadOnSuccess(List<User> userList);

    }

    public static class TestParam {
        public TestParam(String feature, String industryCode, String lastSubCodeId, String subIndustryCode) {
            this.feature = feature;
            this.industryCode = industryCode;
            this.lastSubCodeId = lastSubCodeId;
            this.subIndustryCode = subIndustryCode;
        }

        String feature;
        String industryCode;
        String lastSubCodeId;
        String subIndustryCode;
    }

    public static class LoginParam {
        public LoginParam(String username, String password) {
            this.username = username;
            this.password = password;
        }

        String username;
        String password;
    }
}
